package com.ibm.cps.jarxs;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Request;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;


@Path(ParaUtility.Tenant)
public interface TenantResource {
	
	// ../Tenants/{tenantId}
	@GET
	@Produces(MediaType.APPLICATION_JSON)
	@Path(ParaUtility.TenantFormat)
	Response GetTenantInfo(@PathParam(ParaUtility.TenantField) String tenantId,@HeaderParam(ParaUtility.auth) String key);
	
		
	// ../Tenants/
	@POST
	@Path("")
	@Consumes(MediaType.APPLICATION_JSON)
	Response PostTenant(String json,@HeaderParam(ParaUtility.auth) String key); 
	
	// ../Tenants/TenantId
	@DELETE
	@Path(ParaUtility.TenantFormat)
	Response DeleteTenant(@PathParam(ParaUtility.TenantField) String tenantid,@HeaderParam(ParaUtility.auth) String key);

}
